<?php
	$controller="";
	$action="";
	$file="";
	if(isset($_GET["controller"])){
		$controller = $_GET["controller"];
	}else{
		$controller = 'product';
	}
	
	if(isset($_GET["action"])){
		$action = $_GET["action"];
	}else{
		$action = 'index';
	}
	
	require "../libraries/database.php";
	require "../libraries/functions.php";
	require "templates/vbmb/top.php";
	require "templates/vbmb/left.php";
	
	
	$file='controllers/'.$controller.'/'.$action.'.php';
	if(file_exists($file)) {
		require($file);
	}else{
		
	}
	
	require "templates/vbmb/bottom.php";

?>